ga.core.individual.population
Interface IClusterPopulation<T extends IClusterableIndividual<T>>

Type Parameters:
T - The generic type of individuals.
All Superinterfaces:
IPopulation<T>, java.lang.Iterable<T>
All Known Implementing Classes:
KMeansClusterPopulation

public interface IClusterPopulation<T extends IClusterableIndividual<T>>
extends IPopulation<T>

Interface for populations that do clustering.

Since:
11.08.2012
Author:
Stephan Dreyer

Method Summary
 void assignFitness()
          Assign fitness in all clusters.
 void assignFitness(T ind)
          Searches for the cluster containing the given individual and assigns fitness to all individuals in the cluster.
 void doClustering()
          Divides the population into clusters.
 
Methods inherited from interface ga.core.individual.population.IPopulation
addIndividual, addIndividuals, addIndividuals, clear, containsAny, evaluateAutomatic, getEliteIndividual, getEvaluatedIndividualCount, getFittestIndividual, getIndividuals, getInitIndividualCount, getRandomIndividualForEvaluation, getRandomIndividualForSelection, getUnevaluatedIndividuals, getUnfittestIndividual, initRandomly, isAllowDuplicates, isEmpty, iterator, setEvaluator, setInitIndividualCount, size
 

Method Detail

doClustering

void doClustering()
Divides the population into clusters.

Since:
11.08.2012

assignFitness

void assignFitness(T ind)
Searches for the cluster containing the given individual and assigns fitness to all individuals in the cluster.

Parameters:
ind - Individual that has fitness.
Since:
11.08.2012

assignFitness

void assignFitness()
Assign fitness in all clusters. Requires the centers of the clusters to have fitness.

Since:
11.08.2012